<!DOCTYPE html>
<html>
{include file="common/head" title="首页-后台管理系统"/}
<link rel="stylesheet" href="{$Think.const.ACSS_PATH}staff.css">
<body class="hold-transition skin-red sidebar-mini">
<div class="wrapper">
    {include file="common/scaffold" title="首页"/}
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                首页
                <small>统计信息</small>
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <h4>
                部门统计
            </h4>
            <div class="row">
                {foreach $Sectionlist as $key=>$vue}
                <div class="col-lg-4 col-xs-4">
                    <!-- small box -->
                    <div class="small-box {switch name="key"}
                    {case value="0"}bg-aqua{/case}
                    {case value="1"}bg-green{/case}
                    {case value="2"}bg-yellow{/case}
                    {default /}bg-black{/switch}">
                        <div class="inner">
                            <h3>{$vue.name}</h3>
                        </div>
                    </div>
                </div>
                {/foreach}
               <!-- ./col -->
            </div>


            <h4>
                人员统计
            </h4>
            <div class="row">
                {foreach $Userlist as $key=>$vue}
                <div class="col-lg-4 col-xs-4">
                    <!-- small box -->
                    <div class="small-box {switch name="key"}
                    {case value="0"}bg-aqua{/case}
                    {case value="1"}bg-green{/case}
                    {case value="2"}bg-yellow{/case}
                    {default /}bg-black
                    {/switch}">
                    <div class="inner">
                        <h3>{$vue.number}</h3>
                    </div>
                    <div class="icon">
                        <i class="ion ion-stats-bars "></i>
                    </div>
                    <a href="{:url('section/staff')}?secid={$vue.section}" class="small-box-footer">详情 <i class="fa fa-arrow-circle-right"></i></a>
                </div>
                </div>
                {/foreach}

                <!-- ./col -->
            </div>

        </section>
        <!-- /.content -->
        {include file="common/footer"/}
    </div>
    <!-- /.content-wrapper -->
</div>
<!-- ./wrapper -->

<script>
    var GLOBAL_ListUrl = '{:url("Staff/waiterList")}';
    var GLOBAL_CreateUrl = '{:url("Staff/addWaiter")}';
    var GLOBAL_EditUrl = '{:url("Staff/addWaiter")}';
    var GLOBAL_RemoveUrl = '{:url("Staff/delWaiter")}';


</script>

<script src="{$Think.const.AJS_PATH}staff.js"></script>

</body>

</html>
